import 'package:cbec_app/components/http/api.dart';
import 'package:cbec_app/utils/AppData.dart';

class AppConfig {
  //抓包地址配置
  static String networkInterfaceDebugging = 'PROXY 192.168.10.53:8880';

  AppConfig._();
  //微信sdk配置
  // static var wxAppid = 'wx266a76a5a6aba55e';
  static var wxAppid = 'wx805e1441f63243ab';
  static var wxUniversalLink = 'https://mv2.bd-ego.com/';

  static String clientAndroid = 'android';
  static String clientIos = 'ios';

  ///请求域名
  static String get getBaseUrl {
    // return 'https://testbbc-gateway.indoorbuy.com:3080';
    switch (env) {
      case ENV.dev:
        return 'http://125.71.226.153:3280';
      case ENV.prod:
        return 'https://shopapi.bd-ego.com';
    }
  }

  ///获取端口
  static int getPort(ApiType type) {
    switch (type) {
      case ApiType.userCenter:
        return 3280;
      case ApiType.goodsCenter:
        return 3250;
      case ApiType.marketingCenter:
        return 3210;
      case ApiType.orderCenter:
        return 3220;
      case ApiType.shopCenter:
        return 3240;
      case ApiType.partnerCenter:
        return 3230;
      case ApiType.memberCenter:
        return 3260;
    }
  }

  ///环境
  static ENV env = ENV.dev;
  // static ENV env = ENV.prod;

  ///app是否整体灰色
  static bool appIsGrey = false;
}

enum ENV {
  ///测试环境
  dev,

  ///正式环境
  prod
}
